package com.eshop.modules.activity.service.mapper;

import org.apache.ibatis.annotations.Select;
import com.eshop.modules.product.vo.StoreProductQueryVo;
import org.springframework.stereotype.Repository;
import com.eshop.modules.activity.domain.StoreSeckill;
import com.eshop.common.mapper.CoreMapper;

@Repository
public interface StoreSeckillMapper extends CoreMapper<StoreSeckill>
{
    @Select({ "SELECT c.id,c.image,c.price,c.title as storeName,c.is_show as isShow,c.cost,c.is_postage as isPostage,c.postage,c.sales,c.stock,c.is_del as isDel FROM store_seckill c  WHERE c.id = #{id} and c.is_del = 0 " })
    StoreProductQueryVo seckillInfo(final Long id);
}
